<?php

/**
 * Generated Model class.
 */
class Base_User2groupRow extends Db_Row
{

    /**
     * Set new value for user2group.id column in current Row.
     * 
     * @param int $IdFromUser2groupRow
     * @return void
     */
    public function setId($Id)
    {
        $this->__set("id", $Id);
    }

    /**
     * Return user2group.id column value in current Row.
     * 
     * @return int
     */
    public function getId()
    {
        return $this->__get("id");
    }

    /**
     * Set new value for user2group.user_id column in current Row.
     * 
     * @param int $UserIdFromUser2groupRow
     * @return void
     */
    public function setUserId($UserId)
    {
        $this->__set("user_id", $UserId);
    }

    /**
     * Return user2group.user_id column value in current Row.
     * 
     * @return int
     */
    public function getUserId()
    {
        return $this->__get("user_id");
    }

    /**
     * Return parent row from table user where user2group.user_id = user.id
     * 
     * @param Db_Select $selectFromUser
     * @return UserRow
     */
    public function getUserRowByUserId($select = null)
    {
        return $this->findParentRow('UserPeer', null, $select);
    }

    /**
     * Set new value for user2group.group_id column in current Row.
     * 
     * @param int $GroupIdFromUser2groupRow
     * @return void
     */
    public function setGroupId($GroupId)
    {
        $this->__set("group_id", $GroupId);
    }

    /**
     * Return user2group.group_id column value in current Row.
     * 
     * @return int
     */
    public function getGroupId()
    {
        return $this->__get("group_id");
    }

    /**
     * Return parent row from table groups where user2group.group_id = groups.id
     * 
     * @param Db_Select $selectFromGroups
     * @return GroupsRow
     */
    public function getGroupsRowByGroupId($select = null)
    {
        return $this->findParentRow('GroupsPeer', null, $select);
    }


}

